home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / Developer Essentials May91 / MPW Interfaces & Libraries 3.2 / AIncludes / ENetEqu.a < prev    next >
Encoding:
Text File  |  1991-04-17  |  1.8 KB  |  66 lines  |  [TEXT/MPS ]

  1. ;
  2. ; File: ENETEqu.a - equates for the Ethernet driver
  3. ;
  4. ; Version 1.1a1
  5. ;
  6. ; Copyright 1987 Apple Computer, Inc. All Rights Reserved
  7. ;
  8.  
  9. ; Control codes.
  10.  
  11.  
  12. ENetSetGeneral     EQU        253                ; Set "general" mode
  13. ENetGetInfo        EQU        252                ; Get info
  14. ENetRdCancel    EQU        251                ; Cancel read
  15. ENetRead        EQU        250                ; Read
  16. ENetWrite        EQU        249                ; Write
  17. ENetDetachPH    EQU        248                ; Detach protocol handler
  18. ENetAttachPH    EQU        247                ; Attach protocol handler
  19. ENetAddMulti    EQU        246                ; Add a multicast address
  20. ENetDelMulti    EQU        245                ; Delete a multicast address
  21.  
  22. FirstENET        EQU        ENetDelMulti    ; First ENET command
  23. LastENET        EQU        ENetSetGeneral    ; Last ENET command
  24.  
  25. ; ENET queue element standard structure:  arguments passed in the CSParam area
  26.  
  27. EProtType    EQU    $1C                ; Offset to protocol type code  {csParam}
  28. EMultiAddr    EQU    $1C                ; Multicast address (EAddMulti,EDelMulti) {csParam}
  29.  
  30. EHandler    EQU    EProtType+2        ; Offset to protocol handler
  31. EWDSPointer    EQU    EHandler        ; WDS pointer (EWrite)
  32. EBuffPtr    EQU    EHandler        ; Buffer pointer (ERead,EGetInfo)
  33. EKillQEl    EQU    EHandler        ; QEl pointer (ERdCancel)
  34.  
  35. EBuffSize    EQU    EBuffPtr+4        ; Buffer size (ERead,EGetInfo)
  36. EDataSize    EQU    EBuffSize+2        ; Actual data size (Eread)
  37.  
  38.  
  39. ;---------------------------------------
  40. ; Ethernet packet header
  41. ;---------------------------------------
  42.  
  43. EDestAddr    EQU    0                ; Offset to destination address
  44. ESrcAddr    EQU    6                ; Offset to source address
  45. EType        EQU    12                ; Offset to data link type
  46. EHdrSize    EQU    14                ; Ethernet header size
  47.  
  48. EMinDataSz    EQU    46                ; Minimum data size
  49. EMaxDataSz    EQU    1500            ; Maximum data size
  50. EAddrSz        EQU    6                ; Size of an ethernet node address
  51.  
  52.  
  53. ;
  54. ; Errors and misc.
  55. ;
  56.  
  57. eLenErr        EQU    -92                ; Length error ddpLenErr
  58. eMultiErr    EQU    -91                ; Multicast address error ddpSktErr
  59.  
  60. EAddrRType    EQU    'eadr'            ; Alternate address resource type
  61.  
  62. ;
  63. ; Link specific 'atlk' AGetInfo call
  64. ;
  65. ESpeed        EQU    10000000        ; Link speed in bits/sec
  66.